package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class JsonResult {
    private boolean success = true;
    private String msg;
    private Object result;

    public JsonResult mark(String msg){
        success = false;
        this.msg = msg;
        return this;
    }

    public JsonResult setResult(Object result){
        this.result = result;
        return this;
    }
}
